<% if (request.getAttribute("id") != null) { %>{"name" : "<%=request.getAttribute("name").toString() %>", "id" : "<%=request.getAttribute("id").toString() %>"}<% } %>